/**
  * 弹窗相关的store
  * @author: Ruan Jiazhen
  * @date: 2024-04-29 10:27:16
* */
// 已弃用，考虑删除

import { defineStore } from 'pinia';
import { ref } from 'vue';

export const usePopup = defineStore('popup', () => {
  /** 邀请好友页弹窗类型 */
  const invitePopupType = ref<InvitePopupType>('no');

  /** 修改邀请好友页弹窗类型 */
  const setInvitePopupType = (type: InvitePopupType): void => {
    invitePopupType.value = type;
  };
  

  /** 首页弹窗类型 */
  const homePopupType = ref<PopupType>('no');

  /** 修改首页弹窗类型 */
  const setHomePopupType = (type: PopupType): void => {
    homePopupType.value = type;
  };

  return {
    invitePopupType,
    setInvitePopupType,
    homePopupType,
    setHomePopupType,
  };
});
